 <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">邀请码管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                
                    <table class="search-tab">
                        <tr>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-primary btn2" href="{:U('Yaoqingma/index')}">全部邀请码</a></td>
                            <td><a class="btn btn-primary btn2" href="{:U('Yaoqingma/index',array('status'=>0))}">所有未激活</a></td>
							 <td><a class="btn btn-primary btn2" href="{:U('Yaoqingma/index',array('status'=>1))}">所有已激活</a></td>
							 <td><a class="btn btn-primary btn2" href="{:U('Yaoqingma/buy')}">购买邀请码</a></td>
							 <td>
							 
							   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的邀请码数量：{$totalnum} 个
							 </td>
                        </tr>
                    </table>
                
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
              
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                           
                            <th>邀请码</th>
                            <th>购买时间</th>
                            <th>状态</th>
                            <th>激活人</th>
                         
                        </tr>
						
						<foreach name="re" item="v">
						
                        <tr>
                           
                            <td>{$v.yaoqingma}</td>
                            <td>{$v.time|date="Y-m-d H:i:s",###}</td>
                            <td>
							  <if condition="$v.status eq 0">
							    未激活
							  <else/>
							    已激活
							  </if>
							
							</td>
                            <td>
                                <if condition="$v.status eq 0">
								  无
								<else/>
								  {$v.username}
								
								</if>
								
                            </td>
                        </tr>
                        </foreach>
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
            </form>
        </div>
    </div>
